package com.yhsimon.bridge;

/**
 * @author： YHSimon
 * @date： 2021-08-31 14:18
 */
public class client {
    public static void main(String[] args) {
        //获取折叠式手机(样式+手机)
        Phone phone1=new FoldedPhone(new XiaoMi());
        phone1.open();
        phone1.close();
        phone1.call();

        System.out.println("-----------------------");
        //新增直立样式  相应的品牌同时拥有
        Phone phone2 = new UpRightPhone(new Vivo());
        phone2.open();
        phone2.close();
        phone2.call();
        System.out.println("-----------------------");

        Phone phone3=new UpRightPhone(new XiaoMi());
        phone3.open();
        phone3.close();
        phone3.call();
    }
}
